/*
 * @Author:
 * @Date: 2023-09-15 11:41:14
 * @LastEditors:
 * @LastEditTime: 2023-09-15 11:47:09
 * @FilePath: \immoka-admin\src\api\roomType\index.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from '@/utils/request';

export function listData(query) {
  return request({
    url: `/room-class/type`,
    method: 'get',
    params: query
  });
}

export function postAddData(form) {
  return request({
    url: `/room-class/type`,
    method: 'post',
    data:form
  });
}

export function putEditData(id,form) {
  return request({
    url: `/room-class/type/${id}`,
    method: 'put',
    data:form
  });
}

export function deleteData(form) {
  return request({
    url: `/room-class/type`,
    method: 'delete',
    data:form
  });
  }

// 官方大类列表
export function roomTypeList() {
  return request({
    url: `/room/type/list`,
    method: 'get',
    params: query
  });
}

export function roomUserTypeList(query) {
  return request({
    url: `/room/user/type/list`,
    method: 'get',
    params: query
  });
}

export function userTypeSave(form) {
  return request({
    url: `/room/user/type/save`,
    method: 'post',
    data:form
  });
}

/**
 *
 *房间游戏
 *
 */
// 列表
export function roomGameList(query) {
  return request({
    url: `/admin/room/game`,
    method: 'get',
    params: query
  });
}
// 新增编辑
export function roomGameAdd(form) {
  return request({
    url: `/admin/room/game`,
    method: 'post',
    data:form
  });
}
// 删除
export function roomGameDel(form) {
  return request({
    url: `/admin/room/game`,
    method: 'delete',
    data:form
  });
}
// 房间用户标签
export function roomUserLabelList(query) {
  return request({
    url: `/admin/room/user/label`,
    method: 'get',
    params: query
  });
}
// 添加标签
export function roomUserLabelSave(form) {
  return request({
    url: `/admin/room/user/label`,
    method: 'post',
    data:form
  });
}
// 删除标签
export function roomUserLabelDel(form) {
  return request({
    url: `/admin/room/user/label`,
    method: 'delete',
    data:form
  });
}
